package com.platform.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.platform.base.Tree;
import com.platform.dto.Right;
import com.platform.exception.BizException;
import com.platform.base.mvc.IBaseMapper;
/**
 * 
 * <p> Title: Qx Mapper</p>
 * <p> Description: 系统权限表 </p>
 * <p> Copyright: Copyright (c) 2019 </p>
 * <p> Company: </p>
 *
 * @author wys
 * @version 1.0
 */
@Mapper
public interface RightDAO<T> extends IBaseMapper<T> {
	
	public List<String> findSourceParent(String usercode);
	public List<String> findSourceByRole(String roleId);
	public List<Right> findRightByUserCode(String usercode);
	
	public void deleteBySourceCode(String sourceCode);
	
	public abstract List<Tree> authorizationModular(Map<?, ?> paramMap) throws BizException;
		  
	public abstract List<Tree> queryRightByModular(Map<String, Object> paramMap) throws BizException;
}
